<form name="form1" id="form1" action="" method="post" enctype="multipart/form-data">
<input type="hidden" name="itemID" value="" />
<input type="hidden" name="mode" value="" />
<input type="hidden" name="type" value="" />
<table width="100%" border="0" cellpadding="5" cellspacing="2" class="list">
<tbody>
  <!-- tr>
     <td width="5%" align="center" class="color-tr-td">Danh mục cha</td>
     <td colspan="3" align="left" class="color-tr-td">
        <select name="category_0" id="select_0" onchange="window.location.href='index.php?m=news&idc='+this.value+'<?php echo constants::$pathUrl;?>'">
          <option value="">-- choose --</option>
          <?php if (count ($this->arrNewsCategory) > 0) {
          	foreach ($this->arrNewsCategory as $category) {
          		if (constants::$language_vn) {
          			$nameEn = ' / ' . $category['tieude_en'];
          		} else {
          			$nameEn = '';
          		}
          		if ($this->idc == $category['id']) {
          			echo "<option selected='selected' value=".$category['id'].">".$category['tieude'].$nameEn."</option>";
          		} else {
          			echo "<option value=".$category['id'].">".$category['tieude'].$nameEn."</option>";
          		}
          	}
          }?>
        </select>&nbsp;&nbsp;<span style="color:#F00">*</span>
      </td>
    </tr-->
  <tr>
    <td width="5%" align="center" class="color-tr-td"><b><span onclick="checkAll()">Check</span> | <span onclick="uncheckAll()">Uncheck</span></b></td>
    <th width="20%" align="center" class="color-tr-td">Tiêu đề:</th>
    <th width="5%" align="center" class="color-tr-td">Luợt xem:</th>
    <th width="5%" align="center" class="color-tr-td">Ngày:</th>
    <th width="5%" align="center" class="color-tr-td">Delete</th>
   </tr>
   <?php if (count ($this->arrContent) > 0) {
   		$i=0;
   		foreach ($this->arrContent as $news) {
   ?>
	   <tr class="<?php if ($i%2==0) echo 'blue'; else echo 'white'; ?>">
	     <td align="center"><input type="checkbox" name="checkdel[]" value="<?php echo $news['id'];?>" /></td>
	     <td onclick="frmSubmit('m=news&a=edit&idc=<?php echo $this->idc;?><?php echo constants::$pathUrl;?>', '<?php echo $news['id']; ?>', '', '')">
	     	<?php echo $news['tieude'];?>
	     </td>
	     <td align="center"><?php echo $news['luotxem']; ?></td>
	     <td align="center"><?php echo $news['update_at']; ?></td>
	     <td align="center" onclick="if(cfdelete()){frmSubmit('m=news&idc=<?php echo $this->idc;?><?php echo constants::$pathUrl;?>', '<?php echo $news['id']; ?>', 'delete', '');}"><img src="images/default/b_usrdrop.png" /></td>
	   </tr>
   <?php 
   		$i++;
   		}
   }
   ?>
   <?php if ($this->flagAdd) :?>
   <tr>
     <td width="5%" align="center" class="color-tr-td"><input  onclick="if(cfdelete()){frmSubmit('m=news&idc=<?php echo $this->idc;?><?php echo constants::$pathUrl;?>', '', 'deleteall', '');}" type="button" name="deleteall" value="Delete All" /></td>
     <td colspan="4" align="left" class="color-tr-td"><a href="index.php?m=news&a=edit&idc=<?php echo $this->idc;?><?php echo constants::$pathUrl;?>"><img src="images/default/b_add.png" border="0" width="27" /></a></td>
    </tr>
   <?php endif;?>
   <tr>
   		<td colspan="5" align="center"><table border="0" cellspacing="0" cellpadding="0" align="center">
				<tr>
					<td align="right">
					<?php
					if( $this->currPage > 1 ) {
						echo "<a href=index.php?m=news&idc=".$this->idc."&pageNo=".($this->currPage-1). constants::$pathUrl . "><span>Prev</span></a>&nbsp;&nbsp;";
					}
					?>
					</td>
					<td align="center">
					<?php
					if ($this->numberPage > 1) {
					?>
					  <table border="0" cellpadding="0" cellspacing="0">
							<tbody>
								<tr>
									<td height="15">&nbsp;&nbsp;<?php echo $this->strPaging; ?>&nbsp;&nbsp;</td>
								</tr>
							</tbody>
						</table>
					<?php } ?>
					</td>
					<td align="left">
					<?php
					if ($this->currPage < $this->numberPage) {
						echo "&nbsp;&nbsp;<a href=index.php?m=news&idc=".$this->idc."&pageNo=".($this->currPage+1). constants::$pathUrl . "><span>Next</span></a>";
					}
					?>
					</td>
				</tr>
			</table>
        </td>
   </tr>
</tbody>
</table>
</form>